﻿<!DOCTYPE html>
<html>
<head>
    <title>一丹体检报告</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <script src="grhtml5-6.6-min.js" type="text/javascript"></script>
    <script type="text/javascript">
        if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
            var version = parseFloat(RegExp.$1);
            if (version > 2.3) {
                //var phoneScale = parseInt(window.screen.width) / 640;
                var phoneScale = parseInt(window.screen.width) / 820;
                document.write('<meta name="viewport" content="width=820, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
            } else {
                document.write('<meta name="viewport" content="width=820, target-densitydpi=device-dpi">');
            }
        } else {
            document.write('<meta name="viewport" content="width=820, user-scalable=no, target-densitydpi=device-dpi">');
        }
    </script>
    <script language="javascript" type="text/javascript">
        var LocString = String(window.document.location.href);
        function getQueryStr(str) {
            var rs = new RegExp("(^|)" + str + "=([^&]*)(&|$)", "gi").exec(LocString), tmp;
            if (tmp = rs) {
                return tmp[2];
            }
            // parameter cannot be found
            return "";
        };

        function getQueryVariable(variable) {
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                if (pair[0] == variable) { return pair[1]; }
            }
            return (false);
        };
        function window_onload() {
            var tjbh = getQueryVariable("tjbh");
            var tjcs = getQueryVariable("tjcs");
            var dataurl = "../data/DataCenter.ashx?data=nmtjbb&tjbh=" + tjbh + "&tjcs=" + tjcs;
            //创建报表显示器，参数指定其在网页中的占位标签的ID，关联的报表模板URL，关联的报表数据URL
            var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "../grf/nmtjbb.grf", dataurl);

            //启动报表运行，生成报表
            reportViewer.start();
        }
    </script>
</head>
<body onload="window_onload()">
    <div id="report_holder">
        <!--报表占位标签，生成的报表将显示到这里-->
    </div>
</body>
</html>